function [ output ] = Gprima( input, activationDerivate, BETA )
%GPRIMA Summary of this function goes here
%   Derivada de la funcion g(h) (transferenceG)


for i=1:size(input)
    %g = tanh(BETA*input(i));
    %output(i) = BETA*(1-g*g);
    output(i) = feval(activationDerivate, input(i), BETA);
end

